//
//  FriendsCell.m
//  觅影
//
//  Created by  陶虹 on 16/4/8.
//  Copyright © 2016年  陶虹. All rights reserved.
//

#import "FriendsCell.h"

@interface FriendsCell ()

@property (strong, nonatomic) IBOutlet UIButton *movieButton;
@property (strong, nonatomic) IBOutlet UILabel *numLabel;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation FriendsCell

- (void)configueCellWithModel:(FriendsMovieInfoModel *)model{
    [self.movieButton setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:model.poster]]] forState:UIControlStateNormal];
    self.numLabel.text = [NSString stringWithFormat:@"%@", model.score];
    self.titleLabel.text = model.title;
    self.timeLabel.text = [NSString stringWithFormat:@"%@", model.date];
}
- (IBAction)movieButtonAction:(id)sender {
    
}

- (void)awakeFromNib {
    // Initialization code
}

@end
